//
//  SBRealFocusVc.m
//  BaiSiBuDeJie
//
//  Created by chaoyi on 16/8/24.
//  Copyright © 2016年 tsaievan. All rights reserved.
//

#import "SBRealFocusVc.h"

@interface SBRealFocusVc ()

@end

@implementation SBRealFocusVc

- (void)viewDidLoad {
    [super viewDidLoad];
   
    //设置背景颜色
    self.view.backgroundColor = [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:1.00];
    
    //添加leftButton
    
    UIBarButtonItem *leftButton = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"friendsRecommentIcon"] style:UIBarButtonItemStylePlain target:self action:@selector(jumpToRecommendFoucesVC)];
    
    self.navigationItem.leftBarButtonItem = leftButton;
    
    self.navigationItem.title = @"关注";
}

#pragma mark ----------- 跳转到推荐关注

- (void)jumpToRecommendFoucesVC{
    
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"SBRealFocusVc" bundle:nil];
    
    UIViewController *RecommendFoucusVc = [sb instantiateViewControllerWithIdentifier:@"RecommendFoucusVc"];
    
    //设置本控制器的返回按钮
    
    UIBarButtonItem *backBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:nil action:nil];
    
    self.navigationItem.backBarButtonItem = backBarButtonItem;
    
    
    //push
    [self.navigationController pushViewController:RecommendFoucusVc animated:YES];
    
 
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
